﻿namespace GoodAdmin.CodeGenerator;
/// <summary>
/// 代码生成服务
/// </summary>
public interface ICodeGenService
{
    /// <summary>
    /// 分页查询
    /// </summary>
    /// <param name="input"></param>
    /// <returns></returns>
    Task<SqlSugarPagedList<CodeGenDataSimple>> GetBaseList(CodeGenDataPageInput input);
    /// <summary>
    /// 根据Id获取详细配置信息
    /// </summary>
    /// <param name="id"></param>
    /// <returns></returns>
    Task<CodeGenData> GetDetail(long id);
    /// <summary>
    /// 添加
    /// </summary>
    /// <param name="input"></param>
    /// <returns></returns>
    Task Add(CodeGenDataAddInput input );
    /// <summary>
    /// 删除
    /// </summary>
    /// <param name="input"></param>
    /// <returns></returns>
    Task Delete(BaseIdInput input);
    /// <summary>
    /// 修改
    /// </summary>
    /// <param name="input"></param>
    /// <returns></returns>
    Task Update(CodeGenDataUpdateInput input);

    /// <summary>
    /// 代码预览
    /// </summary>
    /// <returns></returns>
    Task CodePriview();
    /// <summary>
    /// 代码下载
    /// </summary>
    /// <returns></returns>
    Task CodeDownload();
}

